/*
 * @Author: your name
 * @Date: 2021-08-26 15:36:02
 * @LastEditTime: 2021-08-26 16:37:23
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \orderSystems\src\excel\utils.js
 */
// 把文件按照二进制进行读取
export function readFile(file) {  
    return new Promise(resolve=>{
        let reader =new FileReader();
        reader.readAsBinaryString(file);//二进制读取
        reader.onload=ev=>{
            resolve(ev.target.result);//读取的数据
        };
    });
}
//字段对应表
export let character={
    name:{
        text:'姓名',
        type:"string"
    }
}
